Expect metadata to be an object