test and impl for add todo