Added stress-test for memory limit detection (just in case; no leaks found)