Passport name change

I got married last year but my wife’s passport still had her maiden name. In the marriage registration ,her name was updated to my surname. Now she has already given PTE with her current passport and her maiden name in that passport. So will it be ok of she gets a new passport with her new name even though her old passport was used to give the exam. I am yet to file EOI. Please suggest the best route for us