BUG - Failed renaming test case deletes content

I found a way to reproduce this problem, which has been left open over 4 years!

See