Finishing tests for PersistenceService.
Add tests for DocumentController