refactor manage todos spec