modified tests.py file