Refactor test indefinite freeze attack