I seem to remember stubbing a method like element reference would catch any call to that method, but I think it may have been fixed. I'll check.

Will try the shared context bit, thanks for the tip.