Added deleteInitialDocument with test