Add two magic comments to execute tests in the jruby environment
Pattern should be encoded, fixes jruby tests