added a mechanism to make test fail when the exception is thrown in the another thread.