Added test for rescale_dir