Did your car fail the emissions test because of visible smoke, or did it fail a specific CO, HC, NOx, or CO2 test? Depending on what test procedures your area uses, visible smoke may or may not be related to failing an emissions test.
BTW wise_consumer,thanks for the chuckle.