Government to pay £2m to settle coronavirus testing case