Use sinon for fake node creation.
See https://bugzilla.mozilla.org/show_bug.cgi?id=887670 for reference.