`gmin` and `gmax` done. Partially address #5754 (git #523)
stage modified test.