support boolean property of object and add tests.