Fix tests; refactor into PlaylistManager and PlaylistGenerator