added helper methods for genres, media in work model with rspec tests