Why do we do TB tests, and not just vaccinate against tb?

Imperfect vaccines. At the present time, we don't have a very effective vaccine against tuberculosis. Bcg vaccine is used in some countries and provides some protection during childhood, but the protection wanes with time. For that reason, it is less likely to be used in countries like the U.S., where TB is far less common.