Tests successfully written for document reference number