CS fixes and tidy up of tests

well, you really need to escape a baskslash when it is followed by another special char. And the only special chars in single-quoted string are ``\`` and ``'``