Added test case for Excecption.