TST ndarray-compatible handling of zero-size arrays in max/min