Add tests for minNum and maxNum.