updated test.py main file