Refectores tests and todolist example