Added test for min>max condition.
Improved find() to find in descending order when min>max; Add endpoint
options.