HCHO and HCOOH are distinguished by treating with:
HCOOH reacts with NaHCO3 producing effervescence of CO2 but not HCHO.