Automatic Testing For The Generator Function