change required precision to 1e-13 and simplify test script