Added tests for templates containing double-quotes
Fixed issue in ruby export