tests passed for max, min and each