added min and max tests