Refractored todo list creation in spec.