todo list model add validations and add tests