Add test case for all potential function call influence by the issue tha...

...t set result back incorrectly for event variables