fixes functional tests