refactor client test for md5 check in upload and update