Fixed tests and added Travis config