Refactor manage todos spec