Fixed remote exception and added unittest to show this is already fixed

Problems described by #3031 does not seem valid anymore on master / maintenance-3.x, added unittest to verify that problem.

Fixed remote exception (local stacktrace) when ExecutionException is given to ExeceptionUtil::fixRemoteExceptionStacktrace
Can you add some javadoc? Especially the behavior around the ExecutionException is something that should be known.