Fix functional tests running