QAMRT-9 Create test cases for closing thread