Fix stress_test.py bug