added min max test