Added unit test for closure result