fixed broken functional test