Fixing failing test for duplicate variable inserts