You could unit test this now that the logic has been moved and simply expect `update_name` is called with specific arguments.