fix test issue on jruby 1.8