Added a test for distance2electron