Add more unit tests for max/min.