tests maximum minimum