Performance of a GEM-TPC prototype