Update unit test to account for the #2961 fix. Previously, the test was
emulating rename by doing less than ProjectManager.renameItem() does in the
real world. Due to the memory leak fix, the now need a closer imitation.