Beam test results for a tungsten-cerium fluoride sampling calorimeter with wavelength-shifting fiber readout