t-test: Move 'mode' variable from file scope into cmd_t_test().