Added generator tests for object.