Capture specific grammar error around 'end' statement.
Fix typo in test that lead to false failure.