Quality control tests for the CMS barrel RPCs