Refactor embedded string variable tests.
Stop escaped $ from being parsed as beginning of variable.in strings.