This test gives us 100% coverage of take_over

That doesn't mean there aren't any bugs, of course. :-(

Follow-on from #2466.