Fix broken test.
Exit tests with proper exit code.
Add Travis config.