Initial functional tests and travis-ci integration