Testing ensureNotPointer