added closure test case