Not exactly sure why this code creates the "test" file, but no data gets
written into it...