Removed obsolete document cleanup code in unit tests