Stress testing for prm
Fixes and tests for GC