Generator test.