Make ThreadStressTest configurable