diff --git a/doc/source/examples/dierickx_eccentricities.py b/doc/source/examples/dierickx_eccentricities.py
index <HASH>..<HASH> 100644
--- a/doc/source/examples/dierickx_eccentricities.py
+++ b/doc/source/examples/dierickx_eccentricities.py
@@ -1,5 +1,4 @@
 import os, os.path
-import pexpect
 import subprocess
 from astropy.io import fits, ascii
 from astropy import units
diff --git a/tests/test_actionAngle.py b/tests/test_actionAngle.py
index <HASH>..<HASH> 100644
--- a/tests/test_actionAngle.py
+++ b/tests/test_actionAngle.py
@@ -1274,7 +1274,7 @@ def test_estimateDeltaStaeckel_no_median():
 	#and the individual ones
 	indiv = numpy.array([estimateDeltaStaeckel(MWPotential2014, o.R(ts[i]), o.z(ts[i])) for i in range(10)])
 	#check that values agree
-	assert (numpy.fabs(nomed-indiv) < 1e10).all(), 'no_median option returns different values to individual Delta estimation'
+	assert (numpy.fabs(nomed-indiv) < 1e-10).all(), 'no_median option returns different values to individual Delta estimation'
 	return None
 
 def test_actionAngleStaeckel_indivdelta_actions_c():
modifications to tests for estimateDeltaStaeckel and removed import statement from dierickx_eccentricities