Add Travis config.
Fix tests.