state/apiserver/uniter: fix test

When authenticating, against a unit in state, it is the Entity, not the Tag that takes priority.
we should so have a helper function for this that makes sure they are in sync.