added max/min test