updated spec for referral links
email invites js fixed with other specs