Specs fixed to work well with JRuby