validation of documents-presence implemented, but tests need to be fixed