adding some tests for exceptions