Fix unit test error