Instead of it not separating, it was a double free. I've added an add_ref and updated the test.