refactor todo list tests