Tests that a media document has correct referer header.