Add some simple tests regarding references