Add a test for action local variable used in a guard