Fixes the tests failing because as floating point calculation precision.