Added tests and travis