rewrite unit tests for JSON Schema draft 4 support