add unit tests to validate issue #102
dont validate draft4 required attribute when value is undefined

- fixes regression introduced by 61059b2
Merge pull request #1 from alexmmm/fix-required-property-validation

Fix required property validation