Updated test.py to better support multiple workers, and created a script for running the tests multiple times