i integrated this into the DocumentManagerTest and cleaned it to separately test reading and writing