Refactor import tests to make adding new tests easier.