Make import more consistent in test.py