Test Reference class.

Line coverage now 62%.