Fixes

Add travis and fix tests.