[fix bug 1073277] Unit test to check for the referral source.