fix functional tests / remove useless imports in endurance tests