Fixed bug in test.py