tests/parsetext.py: add tests for redundant end-para events

These tests cover two situations where an end block event should
not generate an end-para text event:

1.  When nested blocks are closed together, only one end-para
    text event should be produced.

2.  When a block is empty, or does not generate text events,
    the closing of that block should not generate an end-para
    text event.