Fix unit tests for -XX:-HeapDump...