Tidy the imports up in tests.py