If I heated NaNO3, would there be yellow gas inside the test tube?

I think I answered this for you earlier. NaNO3 decomposes on heating the solid to NaNO2 and O2. NaNO2 is a white solid. O2 is a colorless gas.