Move path configuration to an initializer
Create functional tests for DocumentsController