added additional test for closures