Use `task modify` when saving tasks
Add a couple of simple tests and fix typo