set HTTP_REFERER in tests