Add tests for external links with anchors