on issue https://github.com/sigu-399/gojsonschema/issues/11 : fixed the
issue and added tests to cover this case