Try to make test_import a bit more robust