wrote tests for documents controller
Merge pull request #85 from acjetnut/documents-controller-test

wrote tests for documents controller