[fix bug 1073277] Unit test to check for the referral source.
Merge pull request #1097 from akatsoulas/1073277-homepage

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