Explicitely set document.reference as id in unit tests