TST: Add tests for maximum/minimum of object arrays with nan.

There is a random element to these tests, so that they may fail to
fail when python compare is being used instead of richcompare.