completed file io in location_test file