unit test for throw