PDI-10242

What was done:
1) added unit tests checking var names with special symbols
2) fixed improper handling of var names