add basic code generation testing rig and 1st test.
Fixes #554