On the generalized ratio test