Fix #411 - add a test for rename syncing

r? @gideonthomas