fix setup type for TaskList
complete tests for utils.js