Last reference test