add GenericIterator test case