Added more tests.
Added a travis yml for CI testing.