Refactored todo list creation in spec to include methods.