Tested with various wrong input files