Fixed broken tests on tests.py