getGenres code and test