Search for documents which reference us only if our reference itself is
following format defined in system preference level.
Handle use cases when reference is just None. Add test for this case.