The failure case should be tested, too