Tests for TreeBuilder#on_document.