Fix test runner for replacements