Fix regex in test_case