Added tests and enabled .travis