Added test for cache mirror directory end with a slash
Fixed cache mirror directory end with a slash