Added metadata-manager.js tests.