fixed failed QueueStats unit tests

fixes #3359