Write tests and implement code for more flexible get playlistmethod