tests: Convert longvar.sh test to Autotest framework.