tests: show behavior when using a functor object