What is the purpose of emissions testing for cars and trucks?

Ato determine how much a vehicle pollutes the air
Bto determine how many miles a vehicle can be driven on a gallon of gas
Cto determine how much weight a vehicle can safely carry
Dto determine how many passengers a vehicle can safely carry