fix to prevent bug when tests are running in parallel