Adding test case for QueueItem class