file: fix test case for gpkg by removing the extra \n.
(cherry picked from commit c5e957ad4fe63c90fccc7051ba2a4cb1fe140a75)