test cases for todo list using object