CMF-27: added tests for the code generator