Entity Anchor Functions and Tests