fix up unit test