Initial tests for get_document_or_404
Merge pull request #4763 from dimagi/test-get-document

Test get document