Add the unit test for throw statement. Update existing tests