Refactored LibraryPopularityWorker test case and removed one test