unit tests for TodoService-as-promises