Added tests and Travis integration