How to display certain links in a menu only if a precondition is met?
First of all you need to store value of 'For Test User' checkbox as variable OR as separate column in menu_links table.

like variable_set(url, checkbox_value);

By using hook_menu_alter you can check the variable is set for that url. and if its not set you can set $items['url']['access callback'] = FALSE, By setting this menu will not be visible.

Let me know if anything different required.