Water-testing program aimed to keep state beaches safe for swimming