Remove unnecessary DOM update in test.
Only update URL attribute values after checking protocol.