successful stubbing and  env referral