add threads in test.sh