Use new_test_case_array() instead of duplicating its code.