detectLink() Code coverage