Rename test_mode => debug_mode