Refactor ParseEndpoint() and Endpoint.String()
Add more tests for Message