Add regression test to check that specifying a non-existent event raise a syntax error

This was the case before any of the recent changes