Fix functional tests error in Travis-CI