refactor create_todo_list in spec