Test both 1.8 and 1.9 mode in jruby and exclude mysql2 test on jruby