functional test fixed