heap and test