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
did not see it, thanks