Fix missing test to restrict the new code to closures in the previous commit