refactor manage_todos spec