Test that resources are released after an unfinished generation