Update test for local variable used in guard