add tests for object-array validation