Correct unit test custom pointer dereference operator