Test that explicitly closing the document while it is already closing doesn't result in running the end twice.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
interactive
complete
PASS successfullyParsed is true
TEST COMPLETE