tests + fixes for file hash generation