Adjust test to handle a file correctly which works for normal handling but fails expectedly in text-extraction testing.