Fix pragma.
Change assert into value error (it checks user input).
Properly report syntax errors in filter expression.
Test more invalid things.
Bugfix, and recover from more syntax errors.
Count all syntax errors to ensure they are all triggered in the test.