Added tests for Min and Max