added test for dynamic document