Fix tests by passing proper working directory to processes