fixed issues reg test case.