Added some tests.
Added travisfile.