added error exception for media tags
added test for media-tag exception
changed encoding for run_test.rb to UTF-8