add unit tests for update_ids error cases