Test beam characterization of sensor prototypes for the CMS Barrel MIP Timing Detector