add delete method for thread
add test for delete
Merge pull request #49 from oguro1021/oguro/#46

Oguro/#46