Fix unit test case issue