test changed for documents with any number of signatures greater than 0