Tests for fetchDocs and callbacks