fix issues with jruby failing tests

Fixed 10 minitests that failed under Jruby. All tests pass under MRI ruby 1.9.3, two tests are still failing under JRuby 1..7.2, 1.7.4, 1.7.6.