t5541: check error message against the real port number used