add tests for anchor relationships