resolve bonus test with a k-size queue