Elemental abundances of M dwarfs based on high-resolution near-infrared spectra: Verification by binary systems