Patched memcheck to handle nested test structure.