r17547: Add test by mkhl for some of our variable substituion behaviour.