Fixed RSpec tests; now jRuby friendly