A maker of medical diagnostic tests has acquired a 17,000-square-foot flex building in the Somerset section of Franklin, following a transaction brokered by Zimmel Associates.