Add test for getPointer()