A test for pointer and heap