Government failures on testing are putting NHS at risk