Add tests for malformed endpoint keys.