More unittests to test stack scanning

I found this old unittest in my repo so let's see whether [Issue 7229](http://d.puremagic.com/issues/show_bug.cgi?id=7229) is still a problem.