added loopcontrols extension and added unittests for it

--HG--
branch : trunk
6 files changed