Refactored spec by creating custom matcher

Made the metadata specs easier to read
Created function to help changing existing subject

Though this functionality is not only present in the tests that uses it, it
will make its way to the DSL, to allow client code to easier setup the subject.