fix expected exception assertion

Hi, only a little typo in test.