This is because the Rename UI is displaying the title in the UI (so testb). You need to select a new page to perform a rename, otherwise the UI will tell you the page already exists.
You can do this by either:
Changing the title to something else (this will change the page name)
Click the advanced “new location” pencil icon to specify the page name