Fixed tests

Include the pid in the file name (needed when doing a hot reload and we
temporarily have two workers with the same counter id)