Refactore test code to include create_todo_list method