Initialize keep_to to false by default
Add test to check that existing content got removed when flag keep_to is not set