Fix tests & use Travis

Added Travis support for tests.