Recently, there have been some discussions around creating infrastructure for structural tests, which test for the structure of the generated code rather than correctness of the output. This is currently on the backlog. Once the infrastructure is in place, there are places where structural tests exist in the code already which should be refactored to be more readable/cleaner.
Here's an initial list (to be edited over time):