testkit: improve error message for failed 'entityAs' assertions