Fixed delete reference test