adding a new test example for closure