Added a test for closures based on an accumulator generator.