Enhanced testing with iteration over multiple test cases