Cosmic ray tests of a GEM-based TPC prototype operated in Ar-CF4-isobutane gas mixtures