tests: Convert test for variables in expressions to Autotest.