Update TestException.cpp

fixed a bug in test