only test remove on remove file