Add a setMethod() function to the Factory
Update tests
Update the doc