ensure testmode is off if test_mode is false