Added unit test for recursive freezing