added tests specifically for exception class