Added tests and Travis-CI.