Test generator

/cc @metaskills @maxd

some simple generator tests