Test generator

/cc @metaskills @maxd

some simple generator tests and 1.8 compat