Fix "QProcess: Destroyed while process is still running" warning.

The selfTest created a QProcess and directly returned and then the
injector was deleted triggering the warning. Now we wait for finish
and thus silence this warning.