Be sure you do not have the test folder open by another app or it will not be able to rename it (example: if you are watching the folder in a DOS box, you can't rename it or if it has the focus of the Windows Explorer, etc)