fixed deadlock in test_pepc