make the test less sensitive to numerical errors