Fix tests for IE

By putting the node in document all but one test passes.