Replace .stub calls with allow.