refactor todo list creation in spec