Fix broken insert test: ownership update was missing, causing unlink to not execute.
Do not perform self-assignment, it is not safe.