add tests for objects