added closure test