Properly close tuple iterator in test framework.