Fixed some rare failing unit tests by creating a mock which returns a failure response just once.