generator tests