added tests for Exception examples