Testing can be a criterion of the Definition of Done (DoD) of an user story. During testing, the developers identify defects or bugs that can be addressed by adding them to the Scrum Backlog. After the software product has been released and the user finds a defect of the software, then this defect will be called an escaped defect.