Fixes indent
Adds test for setReferences