add object test and fixed ony patternProperties bug