closures, test case for closures