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

- fixes regression introduced by 61059b2