The UK government is testing its emergency alert system, which will sound on all phones later this year to warn of severe threats.