add test for static local variable