Code generation and cheesy test for such