added tests for objects