Added test for corrupt/incomplete files.