Get max/min option working and add test