Get to 100% branch coverage

Exercise edge cases in branch statements.
A `KeyError` here is desired since an entity key with no kind is ill-formed anyhow?