Bring back Genfun#addMethod and Genfun#removeMethod
Added a test for addMethod method