Update gem versions for Ruby 2.0. Add and fix tests.