Fix exception on tear-down of InsertTests.