Yes, the cost of the insurance and COVID testing is deductible as a medical expense on your federal tax return. Even though there was a nonmedical component, the primary purpose of preventing the spread of coronavirus makes them a deductible medical expense.