The production of carbon dioxide usually leads to releasing bubbles and slight fog in a test tube. NH3 on the other hand will produce heat, so the test tube will become rather warm. However, it will completely dissolve and create a smell. Carbon dioxide does not produce any smells.