Added test for exceptions thrown by sub-modules.