fdo#77969: Write test for this corner case.

Change-Id: Iac8a3d0693456a380d3290c7be06136b04b50390
fdo#77969: Return 0 in case of matrix consisting of all empty elements.

Change-Id: I225d50445d7f84a17c0b9492c17247e4c1c9ef44
Add a bit more test code to test the normal use cases of MIN.

Change-Id: Iad1e120dff49d569e5fb66905e5fe28462759c5a