Added Travis CI config and updated tests