Added tests and Travis CI configuration