document.createEntityReference now throws an exception, Node module is now fully covered, added some more edge cases to the unit tests