file data overflow test and fixing error message