A goodness-of-fit test for maximum order statistics from discrete distributions