Added tests for throw Exceptions