Test beam results with a sampling calorimeter of cerium fluoride scintillating crystals and tungsten absorber plates for calorimetry at the HL-LHC