Added unit and fuctional tests for todos.