test for file removing