Refactored the Todoist unittests a little bit.