Fix #382, #404 jruby pending test