The federal government will test a new national warning system in coming months. It is designed to replace the current patchwork of state-based emergency alerts.