Added reference retrieval unit test