using attach and setParams method in testLocalEstimatorFromFunctorAdapter