Fix tests.py