require(__dirname).test({ xml: '&#NaN;', expect: [ ['opentagstart', {'name': 'R', attributes: {}}], ['opentag', {'name': 'R', attributes: {}, isSelfClosing: false}], ['text', '&#NaN;'], ['closetag', 'R'] ] })