adding method containsMessage to MockValidator to verify if a error message was added by validation
avoiding NPE when serializing lists with null values
adding tests to MockValidator#containsMessage
Merge pull request #504 from nykolaslima/mock_validator_contains_message

containsMessage in MockValidator to verify if a error message was added by validation