add test for #347 (safe eval syntax error)
fix #347
Merge pull request #348 from mlauter/fix-347

Fix #347