Make mock repository blocking tests more deterministic and reproducible