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