Fix tests for IE

By putting the node in document all but one test passes.
Merge pull request #1 from arv/internet-explorer

Fix tests for IE