Issue #138 - thread type added, unittest added