Test closure use variables are returned as static variables