test for passing exception to an exception service