Fix tests.
Simplify the resource arbritation if disk becomes full.