test: correct spelling error & inverted match.

r? @cmr

(I don't know if this is correct, but the old code was certainly wrong.)