My car had an emission test not long ago. The test itself was $32. If your
car needs repair, that's another story.
Go to www.driveclean.org to find a list of garages that can do emission test.
I suggest you call a few garages and get a quote for your muffler. The 2nd
test is $15 if you do that at the same place. There is an upper limit on your
repair bill. Check out the web site for more info.