TestFunctor code