Added tests.
Added Travis CI testing.