Test of a smoke and fire alarm with carbon monoxide sensor capability