tests and functions for copying/removing files