Fix unescaped left braces in regexes in tests

They caues deprecation warnings in perl 5.21.x.