Adding patched-up testopia.py