Added ThreadController tests