Update this instanciation call because you made urlGenerator the last and optional. You have to revert all your changes in all other tests too.