Continued clean up in preperation for extracting monitoring engine by focusing the tests for ThreadDefaultUncaughtExceptionHandler and made it more extensible