Add tests for object validator