In the attached model, the error message for the duplicate definition of the go location is falsely assigned to the test location.
Created attachment 116 [details] Test case
Fixed on the 4.0 branch from rev. 2758.
Fixed on the trunk from rev. 2761.