Fix test to be more robust against unexpectedly running processes
Fix test to be more robust against unexpectedly running processes

stefanomarty/openxpki,openxpki/openxpki,oliwel/openxpki,oliwel/openxpki,openxpki/openxpki,stefanomarty/openxpki,oliwel/openxpki,oliwel/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,oliwel/openxpki,openxpki/openxpki,stefanomarty/openxpki,oliwel/openxpki,stefanomarty/openxpki,openxpki/openxpki