Multiwavelength tests of the dusty torus model for Seyfert galaxies