add test for DocumentHandler