added iterator support for TestCase