The UK government has asked public sector managers to test their contingency plans against a worst-case scenario.