Tests for time series of counts based on the probability-generating functions for time series of counts based on the probability-generating function