fix exception assertion test