Statewide testing of police handguns will take place after a serious malfunction was found in some of the weapons.