Generator test