Revert "Use `emptyDocument` in empty document test."

This reverts commit 853bd7b28e78361b7a273eb23cafa0344b21db0e.
Fix the empty document test.