Testing the emission models of blazar jets with the MAGIC telescopes