adjust test cases and add MD5 test