Correctly raise errors from the driver
Add test for invalid syntax in driver file