cleaned up tests.py file