Fix match expression in tests

The test fails for me currently, despite the content of the file actually being 'success'. It looks like it's trying to match a literal '/success/' (without quotes) rather than treating it as a regular expression.