Add .travis.yml
Fix few errors in the tests
Making pass tests for 1.8.7