Add sleep to checkpoint and tests for gc; fix tests