TST/FIX better test coverage for minmax, and handle 0-size