BT and other telecoms companies have been told to test emergency alarms for the elderly after the digital landline switchover sparked safety fears.