test for failure attempts added