Pre-departure tests for inbound travellers will be axed, the government has confirmed.