Add test coverage.
Remove exceptions from test code.
Add basic travis conf.