Fixed tests and added Travis CI