Add comparison to json check with JSON_ERROR_NONE to make it more readable
Fixed GeoPolygonTest for elasticsearch 1.1.0