Fixed tests to support multiple endpoints with same host, but different
port.
Minor refactoring. Added exception handling to AvroResponder. Added
negative cases to tests.