Adding some tests for handlePatched event, plus a bug fix to getMethodFromAction().