Todo operation with test cases