Pacemaker remote memleak test fixes