Use of an empirical probability generating function for testing a Poisson model