min max and each are passing with test