fixed test and a major bug in addCoordinate. EEP