Test on Midpoints, Distances, and the Pythagorean Theorem