Added test for existing thread.