Fix tests for queue