Added Travis CI build

Made Travis Build work. Fixed unit tests.