add test for anon fn walking