Added tests and Travis config