Updated tests to support anchor texts