When you talk about sprints, there is nothing like a development phase, testing phase, etc. A sprint is NOT a mini-waterfall. The team works together on the Product Backlog Items to achieve the sprint goal. If the item is not complete, the whole item goes back to the Product Backlog. It may or may not come in the next sprint based on the priority.