Issue #312 - enforce filesystem limits

Closes #312
Move this into the test where it's used, not global.