Add tests for importerror testcase