[tests/stream] fixed order of events
[tokenizer] simplified logic
[parser] fixed handling of implied closing and empty tags
[tests/events] accidentally removed part of the document