Avoid showing stack traces in unit tests again

This used to work already, but the InvocationTargetException is now
wrapped in a RuntimeException, therefore the detection of that scenario
failed.

To fix this, and to prevent future breakages, we unwrap all nested
RuntimeException and InvocationTargetExceptions.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>