Fix test unit errors

Replace assertIsNone by assertEqual.