move tests for generator to t/generator