Adding tests for max/min with callbacks