Fix failing case-sensitive regexes in tests