Fixed the test

No it uses the correct method
Copying the existing entries into the new file

And then renaming it to the old one.