Test cases for #85. Good news: scope protection seem to work in an easy
way.