moved TPS testing code into simple_tps.py