add test for static locals