add test case & half way to fix md5 bug