In such a place, on such a test, etc.
It serves to express the incredulity, which in English we would express by using stress: "I never expected to see it on that test" or "I didn't expect it to be there"
Same communicative function accomplished by different devices, if you see what I mean.