remove duplicated underscores inside the loop so we don't return an existing name. Adds regression test.