Completd functional tests for delete thread.