Written unit tests for DocumentsResource and PagesController