(#33) Add test case for check throw exception.