Test for returning the K-largest elements.