fix global md5 sorting error
fix test for update, issue #8