Refactor task list tests and coffeescript