add related document
prepare tests