code and specs for error handling when updating to do items