Fix a couple specs on JRuby