Without looking at the function I can't be sure what is going wrong (and at the moment I don't even have the client installed). But it sounds like you have the right idea. I would suggest you try and design a breakpoint that will only trigger in your test case, then step along making sure your patch(es) is/are executed. My guess is you're not patching correctly.