added unit test for import metadata