remove duplicate vertices + test