Add tests for prepare_link on HTTPLink.