updated functional test