Fix unit test snippet