create media directory during tests