Get to 100% branch coverage

Exercise edge cases in branch statements.
What happens if an `element_dict` contains both keys. Is it impossible for `element.HasField` to return `True` for both?