fix an issue with escaped quotes
remove support for multiple tests in a function

didn't work because var was defined multiple times