[fixes #8] fix and test editing a todo