Tests: clean up string checker tests
Errors: report Esprima parse errors as rule violations.

Fixes #490