added tests for obj.test