Add test for clearing the original file on scaling