Added test script to look at threading behavior.