Better tests for empty document
Merge pull request #252 from Dmitry-Me/moreAdequateTestForEmpty

Better tests for empty document