Better file testing for weird edge cases