Adding tests for PriorityScheduler Task