Density functional theory applied to proton-transfer systems. A numerical test