Fix test to normalize URL for IE7

`a[href]` includes the host name in IE7.