Unit testing: for agent: tscommon/threads tests