tests for object handling