Add deep reference test.