Testing the generalized partial credit model