fix a condition in a unit test