Set up tests and travis builds
Fix tests.