modify the doctests for overcoming rounding errors