Make syntax errors more attractive, and add test