Fix test to normalize URL for IE7

`a[href]` includes the host name in IE7.
Merge pull request #3043 from tricknotes/fix-to-normalize-url

Fix test to normalize URL for IE7