Fixed the midpoint test.