Fixed ThreadController tests