Added tests for importing metadata