test fixes
code generator fix + RandomAnja example