Fix rubocop AmbiguousRegexpLiteral offenses for test/ directory