Edit unit test case & function complete.