fix infinite loop on $" combination when dealing with regular expressions
Fixes #17
fixed references to class names with "cm-" prefixes in tests