add tests for heap dumps and gc