You can take the IELTS test as many times as you want and submit the best scores in your immigration PR application. The new test result does not override the old test result. It is your choice as to which test result you want to use. If the new test result is lower than the previous one, you should the previous IELTS report to file your application for better chances and more PR points.