fixed a bug building test media directories