Module Digest::SHA1 replaced on Digest::SHA in unit-tests too
Slight refactoring of input parameters validation; added list of
error codes in POD