added tests for objects and slots