Updated some divide tests with flexibility. Fixed some min/max
calculation bugs with Divide.