Transferred FunctorTests to separate file and added a case to test that the names of functor classes do not clash.