Add Tests on DocumentManager