test_mode logic

Public