do not send hash from server in error message
add tests for uploading document with invalid type or hash