Add tests for fetchDocs and fix indents