Added Espresso test for deleteing a thread.