jb-add-tests

Add tests for the library and includes travis support