Corrected a wrong reference.

In the code sample the only property which is being defined in beforeEach() and then used in afterEach() is this.router, not this.todo.