add FileAPI line-endings test case

line-endings test case for FileAPI