Add tests for errors, to get up to 99% coverage
Fix error message for restricted language violations