Ensure validate_cmd is a string and fail explicitly otherwise.
Add unit tests for validate_cmd parameter.
Add acceptance test for validate_cmd parameter.