The array giving original vertex indices should not contain entries for newly created vertices. Added a test to check this.