tests/test_threaded.py: Initialize thread attributes in __init__ instead
of run method so they are guaranteed to be initialized