Implemented a test for PriorityScheduler