Tests for updating reference