Add tests for isExternalLink