Test setCommand with parameters.