Fix unit test to pass build