fix the unit test