[TEST] Make sure that a snapshot is completed before trying to modify repository