fix accidentally broken expectation.

the code was right, the test wrong.