Fix functional tests on travis