Made test case more tolerant of numerical differences between platforms