Fix test to avoid duplicate creation of records.