Fix unit test to work