Add test confirming that functions are closures
Use `fn` instead of `f` for anonymous functions