Add gc sleep at checkpoint and corresponding testvar