Hi Farid,
I think the correct answer is
$6.42 million the details as below:
1- 96% pass the test = cost of testing = 96% * 500 unit * 10k = 5M
2- cost to resemble passed units = 96% * 500 unit * 2k = .96 M
3- cost to resemble and repair each failed unit after the factory test = .04* 500 unit * 23k = .46 M
so the total cost of to conduct the tests is 5M+.96M+.46M = 6.42 million
and the cost of not performing the test is "the cost to repair and reinstall each failed unit in the field" which = 0.04% * 500 * 350 K = 7 million.
so in this case conducting the tests would be the best option (but this is not part of the question

)
other thought would be helpful as well.