make resolve_stubs require a dispatcher and make all the testing tests pass.