added tests for deleting shared objects