Add the unit test for throw statement

Add a unit test for throw statement