Added test to check non-caching of closures