Change methods number_of_leaf_nodes(), test_number_of_leaf_nodes() to number_of_non_leaf_nodes() and test_number_of_non_leaf_nodes()
In is_max_heap() change from enumerating over entire heap_list to iterate over non-leaf nodes.