Should you get great ideas during the testing phase, that’s wonderful, that should happen. If so, think whether you can make this changes quickly and how critical they are. If the answer to both questions is yes, then you should make the changes right there and then. Secondary functions, which pop into your head, you can always add into the next version of the application.