test for adding an item to the todo list