add test for DocTypeError