Fix test failes in JRuby with 1.8 mode