add tests with nan/non-nan and non-nan/nan to min