Fix behaviour for simple stubs when stubbing core methods.