added closure test.