digest auth test case, and some fix