Bug in the unit test