metadataTests.js: fixed test problem when default naming convention was camelCase and server metadata provides "nameOnServer" instead of "name"