Minor fixes to test.py