Trying to correct process exit-code when testing