fixed test case exception assertion