Adding functional tests and test run setup on travis ci