edit functions on reordering playlists and test cases