fix failing tests for ruby 1.9+
enable travis-ci