test for removing files