Using the Test-Driven Development in Agile saves you a lot of time & effort. The main purpose of this is to make all the code clearer, bug-free, and simple.