Added tests and Travis