added tests for metadatauser