Testsuite: The fix for [LysLysKOM 18781511] caused the test for the fix of [bug 2672 (#2672)] to break. The reason for the test breaking was that the testsuite adds a function scope wrapper, which causes the classes to be non-overloadable, and thus not needing true parent pointers. Added an updated test and a test for [LysLysKOM 18781511].