More work on tests.
Added Travis CI support.