fixing functional test