Fix unit test assertion