add tests for loop mangling code
add tests for loop mangling code

matteofigus/oc,matteofigus/oc,federicomaffei/oc,andyroyle/oc,NapoleanReigns/oc,opentable/oc,andyroyle/oc,NapoleanReigns/oc,opentable/oc,federicomaffei/oc