write test for adding todo items and associated code