unfolding closure test code