updated test.py file