refactored test data
refactored media hash to util
added media meta data support