fix expected exception assertion