Test for patternProperties + implementation fix