More tests for saving references