Fixing #726, rounding woes and machine epsilon
using wider margin for expected result
adding test to check regressions of #726
adding data to check egressions of #726