Update test/async_for_each.hpp

Use lambdas consistently