file-like truncation testing