Fix and test argmin.