Improve funct test to resolve context.ser error