fix reader test on JRuby 1.9 mode