add error message in test_import