Better scoping of Threads.
Adds tests to demonstrate base scoping behavior.