metadata: added unit test