Add unit tests for TodoCtrl