Tests: Some Repository stuff
Tests: Lookup references
Tests: Reference::destroy()
Tests: Fix Reference::destroy after deprecation