tests for ReferenceController