allow $ to be escaped
add test for dollar escape