Added unit test for delete thread.

Consolidated two delete thread jsps.