Generator tests.