Add test coverage for space rename and actually make it work.