corrected testOnlyValidPositionX functions