Fix test_import directory dependency issue

`test_import` could only be executed inside `sympy`.
See the discussion here https://github.com/sympy/sympy-bot/pull/164