testing failure cases to improve coverage