A test for heap and pointer