Create functional tests for DocumentsController