Add recursive reference test