Failing test for running take_over twice.

When user manages to run take_over twice with the same arguments,
tak_over creates an orphan.
Make take_over idempotent (fixes #617).
Update branch.sql to delete the offending users.