thread_ui tests fixed with mock_link_helper, removed some useless vars