This is covered in mysql-test/t/variables.test. There is no sense
to test this for every individual variables.
This is to reduce the coming soon patch for ROW-type routine variables,
which will change the error from ER_PARSE_ERROR to a new error
"unknown structured variable".