added tests for use metadata