Fix ReferenceDoc unit test