I think you need to add `HTTP_REFERER` to the headers hash so the test passes.