Better tests for empty document