Typo in runtests.pl

The test runner replaced `&#39;` in the output with `'`, but the `g` flag was missing so only one substitution was performed and the output wasn't correctly normalized.