Fixed expectations that failed only on JRuby