add test for corrupted file