Testing variable substitution