Test case for XS::Exception.