Changed max to maximum in test