Fixes #1699
Use these tests sparingly, as they will need to be updated frequently as the code generation changes.