Test cases for key func for both heaps implementation