adding iterator test cases