Additional authentication for task retrieval, plus mocha tests