Correcting situations in which the playlist service would cause track entries to become incorrectly numbered.
Adding unit tests for the playlist service.